﻿using Util.Exceptions;

namespace IterationLife.System.ExternalIdentity
{
    /// <summary>
    /// 
    /// </summary>
    public static class ExternalUserProviderFactory
    {
        public static IExternalUserProvider CreateExternalUserProvider(string provider)
        {
            switch (provider)
            {
                case "Wechat":
                    return new WechatUserProvider();
                default:
                    throw new Warning($"Invalid Provider:{provider}");
            }
        }
    }
}
